<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="Keywords"  content="书易,bookiki,二手书,旧书，课本，校园二手书，大学" />
<meta name="Description" content="搜书->发布供/求信息->校园里交易。书易bookiki通常有大量完整的图书信息，你只需登录后点击一下就可发布供求信息；书易的书单自动匹配使交易更快捷高效" />
<title><?php if(isset($title))   echo $title;
               else    echo "书易Bookiki";   ?>
</title>
<link rel="stylesheet" type="text/css" href="<?=base_url()?>css/091007.css">

<?php
  $strUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
  if (strpos($strUserAgent, 'msie 6') == true or strpos($strUserAgent, 'msie 5.5') == true)
   $isIE6 = true;
  else{
?>
<script type="text/javascript">base_url = '<?= base_url();?>index.php/';</script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery/jquery.autocomplete.js"></script>

<script>
 // JQUERY AUTOCOMPLETE
        $(document).ready(function(){
          	$("#inputString").autocomplete(base_url+"bookiki/ajaxsearch",{
          			delay:10,
          			minChars:1,
          			matchSubset:1,
          			matchContains:1,
          			cacheLength:10,
          			autoFill:false,
          			onItemSelect:focusInputString
          	});
          	$("#inputStringBottom").autocomplete(base_url+"bookiki/ajaxsearch",{
          			delay:10,
          			minChars:1,
          			matchSubset:1,
          			matchContains:1,
          			cacheLength:10,
          			autoFill:false,
          			onItemSelect:focusInputStringBottom
          	});
        })
   // JQUERY INPUT FOCUS HELPERS
    function focusInputString()
        {
            $("#inputString").focus();
        }

    function focusInputStringBottom()
        {
            $("#inputStringBottom").focus();
        }
</script>

<?php
  } //end of else; not ie6,so load javascript
?>